﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Device.Application
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using UnityEngine.Events;

#nullable disable
namespace UnityEngine.Device
{
  /// <summary>
  ///   <para>Access to platform-specific application runtime data.</para>
  /// </summary>
  public static class Application
  {
    /// <summary>
    ///   <para>This has the same functionality as Application.absoluteURL. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string absoluteURL => ShimManager.applicationShim.absoluteURL;

    /// <summary>
    ///   <para>This has the same functionality as Application.backgroundLoadingPriority. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static ThreadPriority backgroundLoadingPriority
    {
      get => ShimManager.applicationShim.backgroundLoadingPriority;
      set => ShimManager.applicationShim.backgroundLoadingPriority = value;
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.buildGUID. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string buildGUID => ShimManager.applicationShim.buildGUID;

    /// <summary>
    ///   <para>This has the same functionality as Application.cloudProjectId. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string cloudProjectId => ShimManager.applicationShim.cloudProjectId;

    /// <summary>
    ///   <para>This has the same functionality as Application.companyName. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string companyName => ShimManager.applicationShim.companyName;

    /// <summary>
    ///   <para>This has the same functionality as Application.consoleLogPath. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string consoleLogPath => ShimManager.applicationShim.consoleLogPath;

    /// <summary>
    ///   <para>This has the same functionality as Application.dataPath. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string dataPath => ShimManager.applicationShim.dataPath;

    /// <summary>
    ///   <para>This has the same functionality as Application.genuine. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static bool genuine => ShimManager.applicationShim.genuine;

    /// <summary>
    ///   <para>This has the same functionality as Application.genuineCheckAvailable. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static bool genuineCheckAvailable => ShimManager.applicationShim.genuineCheckAvailable;

    /// <summary>
    ///   <para>This has the same functionality as Application.identifier. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string identifier => ShimManager.applicationShim.identifier;

    /// <summary>
    ///   <para>This has the same functionality as Application.installerName. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string installerName => ShimManager.applicationShim.installerName;

    /// <summary>
    ///   <para>This has the same functionality as Application.installMode. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static ApplicationInstallMode installMode => ShimManager.applicationShim.installMode;

    /// <summary>
    ///   <para>This has the same functionality as Application.internetReachability and also mimics platform-specific behavior in the Unity Editor.</para>
    /// </summary>
    public static NetworkReachability internetReachability
    {
      get => ShimManager.applicationShim.internetReachability;
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.isBatchMode. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static bool isBatchMode => ShimManager.applicationShim.isBatchMode;

    /// <summary>
    ///   <para>This has the same functionality as Application.isConsolePlatform and also mimics platform-specific behavior in the Unity Editor.</para>
    /// </summary>
    public static bool isConsolePlatform => ShimManager.applicationShim.isConsolePlatform;

    /// <summary>
    ///   <para>This has the same functionality as Application.isEditor and also mimics platform-specific behavior in the Unity Editor.</para>
    /// </summary>
    public static bool isEditor => ShimManager.applicationShim.isEditor;

    /// <summary>
    ///   <para>This has the same functionality as Application.isFocused. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static bool isFocused => ShimManager.applicationShim.isFocused;

    /// <summary>
    ///   <para>This has the same functionality as Application.isMobilePlatform and also mimics platform-specific behavior in the Unity Editor.</para>
    /// </summary>
    public static bool isMobilePlatform => ShimManager.applicationShim.isMobilePlatform;

    /// <summary>
    ///   <para>This has the same functionality as Application.isPlaying. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static bool isPlaying => ShimManager.applicationShim.isPlaying;

    /// <summary>
    ///   <para>This has the same functionality as Application.persistentDataPath. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string persistentDataPath => ShimManager.applicationShim.persistentDataPath;

    /// <summary>
    ///   <para>This has the same functionality as Application.platform and also mimics platform-specific behavior in the Unity Editor.</para>
    /// </summary>
    public static RuntimePlatform platform => ShimManager.applicationShim.platform;

    /// <summary>
    ///   <para>This has the same functionality as Application.productName. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string productName => ShimManager.applicationShim.productName;

    /// <summary>
    ///   <para>This has the same functionality as Application.runInBackground. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static bool runInBackground
    {
      get => ShimManager.applicationShim.runInBackground;
      set => ShimManager.applicationShim.runInBackground = value;
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.sandboxType. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static ApplicationSandboxType sandboxType => ShimManager.applicationShim.sandboxType;

    /// <summary>
    ///   <para>This has the same functionality as Application.streamingAssetsPath. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string streamingAssetsPath => ShimManager.applicationShim.streamingAssetsPath;

    /// <summary>
    ///   <para>This has the same functionality as Application.systemLanguage and also mimics platform-specific behavior in the Unity Editor.</para>
    /// </summary>
    public static SystemLanguage systemLanguage => ShimManager.applicationShim.systemLanguage;

    /// <summary>
    ///   <para>This has the same functionality as Application.targetFrameRate. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static int targetFrameRate
    {
      get => ShimManager.applicationShim.targetFrameRate;
      set => ShimManager.applicationShim.targetFrameRate = value;
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.temporaryCachePath. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string temporaryCachePath => ShimManager.applicationShim.temporaryCachePath;

    /// <summary>
    ///   <para>This has the same functionality as Application.unityVersion. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string unityVersion => ShimManager.applicationShim.unityVersion;

    /// <summary>
    ///   <para>This has the same functionality as Application.version. At the moment, the Device Simulator doesn't support simulation of this property.</para>
    /// </summary>
    public static string version => ShimManager.applicationShim.version;

    public static event Action<string> deepLinkActivated
    {
      add => ShimManager.applicationShim.deepLinkActivated += value;
      remove => ShimManager.applicationShim.deepLinkActivated -= value;
    }

    public static event Action<bool> focusChanged
    {
      add => ShimManager.applicationShim.focusChanged += value;
      remove => ShimManager.applicationShim.focusChanged -= value;
    }

    public static event UnityEngine.Application.LogCallback logMessageReceived
    {
      add => ShimManager.applicationShim.logMessageReceived += value;
      remove => ShimManager.applicationShim.logMessageReceived -= value;
    }

    public static event UnityEngine.Application.LogCallback logMessageReceivedThreaded
    {
      add => ShimManager.applicationShim.logMessageReceivedThreaded += value;
      remove => ShimManager.applicationShim.logMessageReceivedThreaded -= value;
    }

    public static event UnityEngine.Application.LowMemoryCallback lowMemory
    {
      add => ShimManager.applicationShim.lowMemory += value;
      remove => ShimManager.applicationShim.lowMemory -= value;
    }

    public static event UnityAction onBeforeRender
    {
      add => ShimManager.applicationShim.onBeforeRender += value;
      remove => ShimManager.applicationShim.onBeforeRender -= value;
    }

    public static event Action quitting
    {
      add => ShimManager.applicationShim.quitting += value;
      remove => ShimManager.applicationShim.quitting -= value;
    }

    public static event Func<bool> wantsToQuit
    {
      add => ShimManager.applicationShim.wantsToQuit += value;
      remove => ShimManager.applicationShim.wantsToQuit -= value;
    }

    public static event Action unloading
    {
      add => ShimManager.applicationShim.unloading += value;
      remove => ShimManager.applicationShim.unloading -= value;
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.CanStreamedLevelBeLoaded. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="levelIndex"></param>
    /// <param name="levelName"></param>
    public static bool CanStreamedLevelBeLoaded(int levelIndex)
    {
      return ShimManager.applicationShim.CanStreamedLevelBeLoaded(levelIndex);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.CanStreamedLevelBeLoaded. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="levelIndex"></param>
    /// <param name="levelName"></param>
    public static bool CanStreamedLevelBeLoaded(string levelName)
    {
      return ShimManager.applicationShim.CanStreamedLevelBeLoaded(levelName);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.GetBuildTags. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    public static string[] GetBuildTags() => ShimManager.applicationShim.GetBuildTags();

    /// <summary>
    ///   <para>This has the same functionality as Application.GetStackTraceLogType. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="logType"></param>
    public static StackTraceLogType GetStackTraceLogType(LogType logType)
    {
      return ShimManager.applicationShim.GetStackTraceLogType(logType);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.HasProLicense. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    public static bool HasProLicense() => ShimManager.applicationShim.HasProLicense();

    /// <summary>
    ///   <para>This has the same functionality as Application.HasUserAuthorization. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="mode"></param>
    public static bool HasUserAuthorization(UserAuthorization mode)
    {
      return ShimManager.applicationShim.HasUserAuthorization(mode);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.IsPlaying. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="obj"></param>
    public static bool IsPlaying(UnityEngine.Object obj)
    {
      return ShimManager.applicationShim.IsPlaying(obj);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.OpenURL. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="url"></param>
    public static void OpenURL(string url) => ShimManager.applicationShim.OpenURL(url);

    /// <summary>
    ///   <para>This has the same functionality as Application.Quit. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="exitCode"></param>
    public static void Quit() => ShimManager.applicationShim.Quit();

    /// <summary>
    ///   <para>This has the same functionality as Application.Quit. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="exitCode"></param>
    public static void Quit(int exitCode) => ShimManager.applicationShim.Quit(exitCode);

    public static bool RequestAdvertisingIdentifierAsync(
      UnityEngine.Application.AdvertisingIdentifierCallback delegateMethod)
    {
      return ShimManager.applicationShim.RequestAdvertisingIdentifierAsync(delegateMethod);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.RequestUserAuthorization. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="mode"></param>
    public static AsyncOperation RequestUserAuthorization(UserAuthorization mode)
    {
      return ShimManager.applicationShim.RequestUserAuthorization(mode);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.SetBuildTags. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="buildTags"></param>
    public static void SetBuildTags(string[] buildTags)
    {
      ShimManager.applicationShim.SetBuildTags(buildTags);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.SetStackTraceLogType. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    /// <param name="logType"></param>
    /// <param name="stackTraceType"></param>
    public static void SetStackTraceLogType(LogType logType, StackTraceLogType stackTraceType)
    {
      ShimManager.applicationShim.SetStackTraceLogType(logType, stackTraceType);
    }

    /// <summary>
    ///   <para>This has the same functionality as Application.Unload. At the moment, the Device Simulator doesn't support simulation of this method.</para>
    /// </summary>
    public static void Unload() => ShimManager.applicationShim.Unload();
  }
}
